﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GENERIC.DBProvider
{
    public class DbUtils
    {
        public static eConnectionType GetConnectionType(string providerName)
        {
            switch (providerName)
            {
                case "System.Data.SqlClient":
                    return eConnectionType.SQLServer;
                case "System.Data.SqlServerCe":
                    return eConnectionType.SqlCE;
                default:
                    throw new NotImplementedException();
            }
        }

    }
}
